﻿using System;
using System.Collections.Generic;
using System.Text;
using TL_Cloud.Core.Services;
using TL_Cloud.Models.BookShop;

namespace TL_Cloud.ViewModels.BookShop
{
    public class GradePropertyMapping : PropertyMapping<BaseGradeResource, Base_GradeInfo>
    {
        public GradePropertyMapping() : base(
            new Dictionary<string, List<MappedProperty>>(StringComparer.OrdinalIgnoreCase)
            {
                [nameof(BaseGradeResource.GradeId)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_GradeInfo.GradeId),Revert=false }
                },
                [nameof(BaseGradeResource.GradeName)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_GradeInfo.GradeName),Revert=false }
                },
                [nameof(BaseGradeResource.Sort)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_GradeInfo.Sort),Revert=false }
                }, 
                [nameof(BaseGradeResource.EnabledMark)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_GradeInfo.EnabledMark),Revert=false }
                },
            })
        {
        }
    }
}
